import { Router } from 'express';
import userRoutes from './user.routes';
import roleRoutes from "./role.routes";
import menuRoutes from "./menu.routes";
import deptRoutes from './dept.routes';
import postRoutes from './post.routes';
import dictRoutes from './dict.routes';
import configRoutes from './config.routes';
import noticeRoutes from "./notice.routes";

const router = Router();

// 用户管理路由
router.use('/user', userRoutes);

// 角色管理路由
router.use('/role', roleRoutes);

// 菜单管理路由
router.use('/menu', menuRoutes);

// 部门管理路由
router.use('/dept', deptRoutes);

// 岗位管理路由
router.use('/post', postRoutes);

// 字典管理路由
router.use('/dict', dictRoutes);

// 参数设置路由
router.use('/config', configRoutes);

// 注册公告模块路由
router.use('/notice', noticeRoutes);

export default router;